<?php
define('NEED_PERMISSION', 'NONEEDLOGIN');
include('_init_.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="../css/login.css" rel="stylesheet" type="text/css" />
<title>班尼頓網站管理</title>
<style>
.error{color:red;font-size:14px;}
</style>
</head>

<body>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']?>">
<div id="center">
  <ul>
    <li class="logo">班尼頓寫真後台管理</li>
    <li class="tit">班尼頓網站管理</li>
    <?php if ($app->error_message) :?>
    <li class="error" style="float: left;width: 300px;text-align: center;"><?php echo $app->error_message?></li>
    <?php endif;?>
    <li class="logina">帳號：</li>
    <li class="loginb"><input name="username" type="text" value="<?php echo isset($_REQUEST['username'])?$_REQUEST['username']:'';?>" /></li>
    <li class="logina">密碼：</li>
    <li class="loginb"><input name="password" type="password" /></li>
       <?php if($GLOBALS['needValidCode']):?>
     <li>
       <li class="logina">驗證碼;</li>
        <li class="loginb" style="position:relative;"><input type="text"  name="validatecode"><img src="validatecode.php" style="position: absolute;left: 200px;top: 5px;"/></li>
    <?php endif;?>
    <li class="loginc"><a href="#" onclick="document.forms[0].submit();return false;">登入</a></li>
  </ul>
</div>
</form>
</body>
</html>